//
//  Person.m
//  KVC的实现
//
//  Created by webplus on 17/8/31.
//  Copyright © 2017年 sanyi. All rights reserved.
//

#import "Person.h"



@implementation Person
{
    NSString *toSetName;
    NSString* isName;
    NSString* name;
    NSString* _name;
    NSString* _isName;
}

- (void)setName:(NSString *)name{
    toSetName = name;
}

-(NSString*)getName{
    return toSetName;
}
//+(BOOL)accessInstanceVariablesDirectly{
//    return NO;
//}
-(id)valueForUndefinedKey:(NSString *)key{
    NSLog(@"出现异常，该key不存在%@",key);
    return nil;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    NSLog(@"出现异常，该key不存在%@",key);
}
-(void)setNilValueForKey:(NSString *)key{
    NSLog(@"age不是指针对象,不能将%@设成nil",key);
}


@end












